﻿using Common.Contract.Customer.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.ViewModel.Customer
{
    public class DistrictsViewModel : GenerateViewMode, IViewModel
    {
        [Required(ErrorMessage = "District is required.")]
        [Display(Name = "DistrictName:")]
        [StringLength(50, ErrorMessage = "DistrictName cannot be longer than 40 characters.")]
        public string DistrictName { get; set; }

        public decimal Lng { get; set; }

        public decimal Lat { get; set; }

        public List<ProvinceRecord> Provinces { get; set; }

        public string DistrictIdentifier { get; set; }

        [Display(Name = "Province:")]
        [Required(ErrorMessage = "Province is required.")]
        public string ProvinceIdentifier { get; set; }
    }
}
